package com.my.api.request.user;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;

public class LoginRequest {

		//账号
		@NotBlank(message="账号不能为空")
		@Length(max=18,min=8,message="账号长度8～18位")
		private String account;
		//密码
		@NotBlank(message="密码不能为空")
		@Length(max=16,min=6,message="密码长度6～16位")
		private String password;
		public String getAccount() {
			return account;
		}
		public String getPassword() {
			return password;
		}
		public void setAccount(String account) {
			this.account = account;
		}
		public void setPassword(String password) {
			this.password = password;
		}
		
		@Override
		public String toString() {
			return JSON.toJSONString(this, SerializerFeature.UseISO8601DateFormat);
		}
}
